﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
//https://management.core.windows.net/
//http://msdn.microsoft.com/en-us/library/ee460786.aspx
namespace Infrastructure.WpfClient.Views.AzureMgm
{
    public class AzureMgmPresenter: Master.MasterPresenter<IAzureMgmView>
    {
        public string HostedServices { get; set; }
        [Dependency]
        public Infrastructure.Aspect.Services.AzureMgm.IAzureMgmService  AzureMgmService{ get; set; }

        public AzureMgmPresenter(IUnityContainer container) :base(container)
        {
             
        }
        public override void OnViewReady()
        {
            this.HostedServices = this.AzureMgmService.GetHostedServices(@"C:\AZURECERT\skyazureauthentication.cer", "567decf2-dee2-4d79-a70c-63e9a42a9d5b");
            this.InvokePropertyChanged("HostedServices");  
        }

    }
}
